package com.icloud.article.boot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.icloud.article.boot.dto.ArticleBrowsedBatchDelDto;
import com.icloud.article.boot.mapper.ArticleBrowsedMapper;
import com.icloud.article.boot.model.ArticleBrowsed;
import com.icloud.article.boot.service.ArticleBrowsedService;
import org.springframework.stereotype.Service;

/**
 * 贴子浏览记录service 实现类
 */
@Service
public class ArticleBrowsedServiceImpl extends ServiceImpl<ArticleBrowsedMapper, ArticleBrowsed> implements ArticleBrowsedService {
    @Override
    public boolean batchDel(ArticleBrowsedBatchDelDto dto) {
        baseMapper.deleteBatchIds(dto.getIds());
        return true;
    }
}
